{% extends "admin/layout.jinja2" %}
{% block title %}Home<-{{ super() }}{% endblock %}
{% block head %}
    {{ super() }}
    <style type="text/css">
    </style>
    <script type="text/javascript">
        if(!window.GLOBAL) {
          window.GLOBAL = {};
        }
    </script>
{% endblock %}
{% block content %}
    {{ super() }}
{% endblock %}
{% block right_content %}
    <div class="pure-g">
        <div class="pure-u-1">
            <form class="pure-form">
                <fieldset>
                    {% if article.id is defined %}
                    <input type="hidden" id="txt-id" value="{{ article.id }}" />
                    {% endif %}
                    <input type="text" id="txt-title" class="pure-u-3-4" value="{{ article.title }}" placeholder="title" />
                    <textarea id="article-editor" style="visibility: hidden;">{{ article.content | default('default content') }}</textarea>
                    <textarea id="txt-summary" placeholder="summary">{{ article.summary | default('') }}</textarea>
                </fieldset>
            </form>
        </div>
    </div>
{% endblock %}
{% block js_import %}
    {{ super() }}
    {# {% assets "tinymce_plugins_js" %}
        <script type="text/javascript">
            GLOBAL.TINYMCE_PLUGINS = "{{ ASSET_URL }}";
        </script>
    {% endassets %} #}
    {% assets "jl_dist" %}
        <script type="text/javascript">
            GLOBAL.JL_DIST = "{{ ASSET_URL }}";
        </script>
    {% endassets %}
    <script type="text/javascript" src="{{ url_for('static', filename='assets/admin/js/article/edit.js') }}"></script>
{% endblock %}